package com.h3c.ptability.dto;

import java.util.Date;
import java.sql.Blob;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtNoticeRecordDTO
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_notice_record dto实体
 * Version: 1.0
 */
@ApiModel(value="PtNoticeRecord对象", description="")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PtNoticeRecordDTO {


    @ApiModelProperty(value = "通知记录ID")
    private String noticeId;

    @ApiModelProperty(value = "应用ID")
    private String appId;

    @ApiModelProperty(value = "申请单号")
    private String orderId;

    @ApiModelProperty(value = "发起人工号")
    private String applyUserId;

    @ApiModelProperty(value = "通知方式：1 邮件；2 短信；3 公众号；")
    private Integer noticeType;

    @ApiModelProperty(value = "收信人工号")
    private String targetId;

    @ApiModelProperty(value = "收信人姓名")
    private String targetName;

    @ApiModelProperty(value = "收信人邮箱")
    private String targetEmail;

    @ApiModelProperty(value = "收信人手机号")
    private String targetPhone;

    @ApiModelProperty(value = "通知标题")
    private String noticeTitle;

    @ApiModelProperty(value = "通知正文")
    private String noticeContent;

    @ApiModelProperty(value = "通知创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "发送成功标志：1 未发送；2 已发送；")
    private Integer sendFlag;

    @ApiModelProperty(value = "通知发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sendTime;

    @ApiModelProperty(value = "上传附件文件ID")
    private String uploadBusiId;

    @ApiModelProperty(value = "邮件图片")
    private Blob noticeContentPic;

    @ApiModelProperty(value = "抄送人邮箱")
    private String copyToEmail;

    /**
     * 排序字段 + 升序， -降序
     * 比如 +updateTime 根据 修改时间升序排序，-updateTime 根据 修改时间降序排序
     */
    private String orderBy;

}
